package com.lovo.invoicing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.invoicing.bean.BuyBean;
import com.lovo.invoicing.mapper.BuyMapper;
import com.lovo.invoicing.service.IBuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class BuyServiceImpl implements IBuyService {
    @Autowired
    BuyMapper buyMapper;

    @Override
    @Transactional
    public void addBuyBeans(List<BuyBean> list, int buyInfoId) {
        buyMapper.insertBuyBeans(list,buyInfoId);
    }
}
